Clean up the Windows x64 changes.
authorEli Zaretskii <eliz@gnu.org>
Mon, 1 Oct 2012 11:37:37 +0000 (13:37 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 1 Oct 2012 11:37:37 +0000 (13:37 +0200)
commit5fed1c9b69955e0a98b6273d231d27df82ad8147
treeef3374e62f4c07bbaf60b7d9ed0f880b35ffe60a
parent5a454a1e0c9b8f176d522bea7f8d18ee1cd616a4
Clean up the Windows x64 changes.

 nt/preprep.c (RVA_TO_PTR): Use 'unsigned char *' instead of
 'void *', for pointer arithmetics.
 (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_SECTION_OFFSET): Enclose all
 macro arguments in parentheses.

 src/unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET)
 (RVA_TO_SECTION_OFFSET): Encode all macro arguments in parentheses.
 (RVA_TO_PTR): Cast the result of RVA_TO_OFFSET to 'unsigned char *',
 as the previous version used 'void *'.
 src/ralloc.c (ROUNDUP): Fix last change.
 (MEM_ROUNDUP): Don't cast MEM_ALIGN, it is already of type
 'size_t'.
nt/ChangeLog
nt/preprep.c
src/ChangeLog
src/ralloc.c
src/unexw32.c